package cn.yyh.serviceOrder.service;

import cn.yyh.commons.service.MyBaseService;
import cn.yyh.commons.utils.PageInfo;
import cn.yyh.serviceOrder.domain.AdoptOrder;
import cn.yyh.serviceOrder.query.AdoptOrderQuery;
import org.csource.common.MyException;

import java.util.Map;

public interface IAdoptOrderService extends MyBaseService<AdoptOrder> {

    String submit(Map<String, Object> map, Long id,String token) throws MyException;

    PageInfo<AdoptOrder> queryByAdmin(AdoptOrderQuery query, Long id,String token);

    PageInfo<AdoptOrder> queryByUser(AdoptOrderQuery query, Long id,String token);

    void deleteByQuartz(Long orderId);

    void cancel(Long id);

    void successful(Long id);
}
